package com.fsh.subject;

import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * 作者：fsh
 * 日期：2023/10/15
 *
 * 描述：刷题微服务启动类
 */
@SpringBootApplication
@ComponentScan("com.fsh")
@MapperScan("com.fsh.**.mapper") //扫描mapper ，**跳过多级目录
//打开feign开关，扫描包
@EnableFeignClients(basePackages = {"com.fsh"})
public class SubjectApplication {
    public static void main(String[] args) {
        SpringApplication.run(SubjectApplication.class,args);
    }
}
